package	com.sdry.service.impl.workplace;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sdry.model.workplace.WorkCentrifugalDetails;
import com.sdry.service.workplace.WorkCentrifugalDetailsService;
import com.sdry.mapper.workplace.WorkCentrifugalDetailsMapper;
/**
 *
 *@ClassName: WorkCentrifugalDetailsService
 *@Description: 离心机详情
 *@Author tdd
 *@Date 2018-12-20 上午11:15:24 
 *@version 1.0
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class WorkCentrifugalDetailsServiceImpl implements WorkCentrifugalDetailsService {
	@Resource WorkCentrifugalDetailsMapper workCentrifugalDetailsMapper;
	/** 
	 * 根据主键id查询实体
	 * @param id 主键id
	 * @return 实体
	*/
	public WorkCentrifugalDetails queryById(Long id) {
		return workCentrifugalDetailsMapper.queryById(id);
	}
	/** 
	 * 条件查询所有
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<WorkCentrifugalDetails> queryAllByMution(WorkCentrifugalDetails param) {
		return workCentrifugalDetailsMapper.queryAllByMution(param);
	}
	/** 
	 * 条件分页查询
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<WorkCentrifugalDetails> findPageByMution(WorkCentrifugalDetails param) {
		return workCentrifugalDetailsMapper.findPageByMution(param);
	}
	/** 
	 * 条件查询记录数
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public Integer selectCountByMution(WorkCentrifugalDetails param) {
		return workCentrifugalDetailsMapper.selectCountByMution(param);
	}
	/** 
	 * 插入返回id
	 * @param param 实体条件
	 * @return 主键id
	*/
	public Long insert(WorkCentrifugalDetails param) {
		return workCentrifugalDetailsMapper.insert(param);
	}
	/** 
	 * 根据主键更新 返回影响行数
	 * @param param 实体条件
	 * @return 影响行数
	*/
	public Integer update(WorkCentrifugalDetails param) {
		return workCentrifugalDetailsMapper.update(param);
	}
	/** 
	 * 根据主键拼接的字符串删除返回影响行数
	 * @param param 实体条件
	 * @return 影响行数
	*/
	public Integer delete(String ids) {
		return workCentrifugalDetailsMapper.delete(ids);
	}
}
